home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12720 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: mackboring@aol.com (MackBoring)
  3. Newsgroups: comp.lang.c++
  4. Subject: Solution Needed ASAP
  5. Date: 21 Mar 1996 06:55:23 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4irg3b$phr@newsbf02.news.aol.com>
  9. Reply-To: mackboring@aol.com (MackBoring)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Need simple C solutions to  (2) Problems, I have asked for help before and
  13. would appreciate any help possible.
  14.  
  15. PROBLEM #1...............Use of Arrays to solve
  16. Write a program which will ask for the  encrypted text(See below) to be
  17. entered from the keyboard,then decode the text, and print out the
  18. corrected message. Uppercase only is fINE
  19. APLPHABET: A B C D E F G H I J K L M  N O P Q R T S U V W X Y Z 
  20. CODE:            K D X L G T O E S A N H R F U M P V W I B Z Q Y J C 
  21. Letter substitution is as follows every time you see a K in the code a A
  22. would be subsituted for it
  23.  
  24. The encrypted text is: 
  25.                              ST JUB EKZG QVSIIGF IEG MVUOVKR MVUMGVHJ IESW
  26. WGFIGFXG QSHH DG BFLGVWIKFLKDHG
  27.  
  28.  
  29. PROBLEM# 2....Use of functions to solve
  30.  
  31. Compute the areas of the following shapes:
  32. Square: Side X Side
  33. Rectangle: Length x Width
  34. Triangle: (1/2) x Base x Height
  35. Circle: 3.14159 x radius x radius
  36. Place each computation in a seperate function, each function should
  37. announce the shape being computed
  38. request the proper dimensions, compute and print the area and return to
  39. main. 
  40. Anumerical  menu to select the available function needs to be created with
  41. a 0 being the termination character 
  42.  
  43. Thanks for any help...........................Fred
  44.